package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.Admin;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QAdmin is a Querydsl query type for Admin
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QAdmin extends com.querydsl.sql.RelationalPathBase<Admin> {

    private static final long serialVersionUID = -332220734;

    public static final QAdmin Admin = new QAdmin("Admin");

    public final StringPath account = createString("account");

    public final StringPath adminId = createString("adminId");

    public final NumberPath<Integer> adminState = createNumber("adminState", Integer.class);

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final NumberPath<Integer> gender = createNumber("gender", Integer.class);

    public final StringPath name = createString("name");

    public final StringPath password = createString("password");

    public final com.querydsl.sql.PrimaryKey<Admin> primary = createPrimaryKey(adminId);

    public QAdmin(String variable) {
        super(Admin.class, forVariable(variable), "null", "Admin");
        addMetadata();
    }

    public QAdmin(String variable, String schema, String table) {
        super(Admin.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QAdmin(String variable, String schema) {
        super(Admin.class, forVariable(variable), schema, "Admin");
        addMetadata();
    }

    public QAdmin(Path<? extends Admin> path) {
        super(path.getType(), path.getMetadata(), "null", "Admin");
        addMetadata();
    }

    public QAdmin(PathMetadata metadata) {
        super(Admin.class, metadata, "null", "Admin");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(account, ColumnMetadata.named("account").withIndex(5).ofType(Types.VARCHAR).withSize(64));
        addMetadata(adminId, ColumnMetadata.named("adminId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(adminState, ColumnMetadata.named("adminState").withIndex(4).ofType(Types.INTEGER).withSize(10));
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(7).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(gender, ColumnMetadata.named("gender").withIndex(6).ofType(Types.INTEGER).withSize(10));
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(Types.VARCHAR).withSize(64));
        addMetadata(password, ColumnMetadata.named("password").withIndex(3).ofType(Types.VARCHAR).withSize(64));
    }

}

